package excercise;

public class EX01_Q03 {

	public static void main(String[] args) {
	//변수
	int x = 2;
	int y = 4;
	int z = 5;
	
	float tab = 0F;

    //계산
	tab = x*3;
	System.out.println( "3x = "+tab );
	
	tab = 0;
	tab = (3*x)+y;
    System.out.println( "3x + y = " +tab);
	
	tab = 0;
	tab = (x+y)/7;
	System.out.println( "(x + y) / 7 = " +tab);
	
	tab = 0;
	tab = (3*x+y)/(z+2);
	System.out.println( "(3x + y)/(z + 2) = " +tab);
	System.out.println( (3*x+y)/z+2); // 이렇게 써도됨
	 
    
			


	}

}
